<include file="public@header" />
</head>
<body>
	<div class="wrap">

		<form class="form-horizontal js-ajax-form margin-top-20" role="form" method="post" action="{:url('User/tixian_post')}">

          <div class="form-group">
				<label for="input-signature" class="col-sm-2 control-label">提现真实姓名</label>
				<div class="col-md-6 col-sm-10">
					<p style="float:  left;line-height: 35px;margin-right:  14px;padding: 0 17px;border: 1px solid #eee; width: 200px;">{$tx_name} </p>
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_url" class="col-sm-2 control-label">提现银行</label>
				<div class="col-md-6 col-sm-10">
					<p style="float:  left;line-height: 35px;margin-right:  14px;padding: 0 17px;border: 1px solid #eee; width: 200px;">{$tx_card_name} </p>
				</div>
			</div>
          	
			<div class="form-group">
				<label for="input-signature" class="col-sm-2 control-label">提现银行卡号</label>
				<div class="col-md-6 col-sm-10">
					<p style="float:  left;line-height: 35px;margin-right:  14px;padding: 0 17px;border: 1px solid #eee; width: 200px;">{$tx_card_code}</p>
				</div>
			</div>
          <div class="form-group">
				<label for="input-signature" class="col-sm-2 control-label">余额</label>
				<div class="col-md-6 col-sm-10">
					<p style="float:  left;line-height: 35px;margin-right:  14px;background:  #eee;padding: 0 17px;color: red">￥{$balance}  </p>
				</div>
			</div>
			<div class="form-group">
				<label for="input-signature" class="col-sm-2 control-label">提取金额</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_url" name="tx_balance" value="{$balance}" placeholder="请输入提取金额">
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">提交</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
  <script>
    $(function () {
        $('.score').click(function () {
            var scoreId = $(this).attr('data');
            openIframeLayer("/admin/user/score_info.html?id=" + scoreId, '积分明细', {
                area: ['900px', '600px']
            });
        })
        $('.balance').click(function () {
            var balanceId = $(this).attr('data');
            openIframeLayer("/admin/user/balance_info.html?id=" + balanceId, '余额明细', {
                area: ['900px', '600px']
            });
        })

        $('.tixian').click(function () {
            var tixianId = $(this).attr('data');
            var balance={$balance};
            if(balance>=1000){
                openIframeLayer("/admin/user/tixian.html?id=" + tixianId, '提现', {
                    area: ['900px', '600px']
                });
			}else{
                Wind.use("layer", function () {
                    layer.msg('最低提现金额￥1000元,当前余额：￥'+balance)
                });
			}

        })
    })

</script>
</body>
</html>